package com.hlf.modules.merchant.table.mapper;


import com.hlf.modules.base.mapper.BaseMapper;
import com.hlf.modules.merchant.table.entity.Table;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TableMapper extends BaseMapper<Table> {
    int deleteByPrimaryKey(Long id);

    int insert(Table record);

    int insertSelective(Table record);

    Table selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Table record);

    int updateByPrimaryKey(Table record);

    int queryTotalForTableTypeId(@Param("tableTypeId") long tableTypeId);

    List<Table> serachByTableNum(@Param("tableNum") String tableNum,@Param("storeId") Long storeId);
}